package com.tourlaid.mamagerment.interceptor

import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.HandlerInterceptor
import org.springframework.web.servlet.ModelAndView
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse

/**
 * Created by xiaoyongge on 2017/7/26.
 */
@Configuration
class LoginInterceptor : HandlerInterceptor {


    override fun preHandle(request: HttpServletRequest,
                           response: HttpServletResponse, handler: Any): Boolean {

        return true
    }

    override fun postHandle(request: HttpServletRequest,
                            response: HttpServletResponse, handler: Any,
                            modelAndView: ModelAndView) {
    }

    override fun afterCompletion(request: HttpServletRequest,
                                 response: HttpServletResponse, handler: Any, ex: Exception) {

    }
}